package com.cn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 后台接口表
    */
@ApiModel(value="com-cn-pojo-SysApi")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_api")
public class SysApi {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * API名称
     */
    @TableField(value = "api_name")
    @ApiModelProperty(value="API名称")
    private String apiName;

    /**
     * API请求地址
     */
    @TableField(value = "api_url")
    @ApiModelProperty(value="API请求地址")
    private String apiUrl;

    /**
     * API请求方式：GET、POST、PUT、DELETE
     */
    @TableField(value = "api_method")
    @ApiModelProperty(value="API请求方式：GET、POST、PUT、DELETE")
    private String apiMethod;

    /**
     * 父ID
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="父ID")
    private String parentId;

    /**
     * 排序
     */
    @TableField(value = "api_sort")
    @ApiModelProperty(value="排序")
    private Integer apiSort;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="修改时间")
    private Date updateTime;

    /**
     * 0：不可用，1：可用
     */
    @TableField(value = "available")
    @ApiModelProperty(value="0：不可用，1：可用")
    private Integer available;

    /**
     * 描述
     */
    @TableField(value = "description")
    @ApiModelProperty(value="描述")
    private String description;

    public static final String COL_ID = "id";

    public static final String COL_API_NAME = "api_name";

    public static final String COL_API_URL = "api_url";

    public static final String COL_API_METHOD = "api_method";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_API_SORT = "api_sort";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_AVAILABLE = "available";

    public static final String COL_DESCRIPTION = "description";
}